#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

typedef int SLDataType;

typedef struct SeqList
{
	SLDataType* arr;
	int size;
	int capacity;
}SL;

void SeqListInit(SL* ps);
void SeqLisstDestory(SL* ps);

void SeqListPrint(SL* ps);
void SeqListPushBack(SL* ps, SLDataType val);
void SeqListPushFront(SL* ps, SLDataType val);

void SeqListPopBack(SL* ps);
void SeqListPopFront(SL* ps);

int SeqListFind(SL* ps, SLDataType val);
void SeqListInsert(SL* ps, int pos, SLDataType val);
void SeqListErase(SL* ps, int pos);